
<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link rel="stylesheet" type="text/css" href="theme/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="theme/default/css/common.css">
<script src="theme/default/Js/Common.js"></script>
<script src="theme/default/Js/jquery-3.0.0.min.js"></script>
<script src="theme/default/js/artDialog.js?skin=blue"></script>
<link rel="stylesheet" type="text/css" href="include/webupload/webuploader.css">
<script src="include/webupload/webuploader.min.js"></script> 
<script src="include/webupload/uploads.js"></script>
<link rel='stylesheet' type="text/css" href='theme/desktop/css/font-awesome.min.css'>
<link rel="stylesheet" type="text/css" href="theme/desktop/css/desktop.css">

<style>
.tr:hover{ background:none;}
</style>
</head>
<body>

<div class="cssout">
<div class="MenuboxS">
<ul>
  <!--<li><span><a href="mailsjx.asp">收件箱列表</a></span></li>-->
  <li><span><a href="listmail.html?LaiLu=">已发送记录</a></span></li>
        <li class="hover"><span><a href="sendemail.html?LaiLu=">发送邮件</a></span></li>
  <!--<li><span><a href="sendemail_auto.asp">自动发送设置</a></span></li>-->
  
  
  <span style=" margin-left:20px;">JMAIL邮件发送组件:
          
          <span style="color:#096">√支持</span>
          
          </span>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
<div class="mailpage">
  
  <script>
function checkadd()
{
if (document.add.receive.value=='')
{
alert('收件人不能为空');
document.add.receive.focus();
return false
}
var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
    if(!myreg.test(document.add.receive.value))
   {
       alert('提示\n\n请输入有效的E_mail!');
       document.add.receive.focus();
       return false;
    }
	
if (document.add.title.value=='')
{
alert('邮件标题不能为空');
document.add.title.focus();
return false
}
if (document.add.txaContent.value=='')
{
alert('邮件内容不能为空');
document.add.txaContent.focus();
return false
}
}
</script>
  <form class="layui-form" name="add" method="post" action="?action=send&t=" onSubmit='return checkadd()'>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" CLASS="table_1">
      <col width="100" />
      <tr class="tr_t">
        <td class="td_l_l" COLSPAN="4">发送邮件</td>
      </tr>
      <tr class="tr">
        <td class="td_l_r title">收件邮箱 <font color="#FF0000">*</font></td>
        <td class="td_r_l">
          <input name="receive" type="text" class="bor int" id="receive" value="" size="50" />
        </td>
      </tr>
      <tr class="tr">
        <td class="td_l_r title">邮件标题 <font color="#FF0000">*</font></td>
        <td class="td_r_l"><input name="title" type="text" class="bor int" id="title" size="80" /></td>
      </tr>
      <tr class="tr">
        <td class="td_l_r title">邮件内容 <font color="#FF0000">*</font></td>
        <td class="td_l_l" style="padding:10px;"><!-- 加载编辑器的容器 --> 
<dd class="isin">
<textarea class="layui-textarea layui-hide" name="txaContent" id="txaContent"></textarea>
</dd>
<script>
function changenr(id,title){
mb=document.getElementById(id).innerHTML
KindEditor.html("#txaContent",mb);
document.getElementById("title").value = title;
}
</script></td>
      </tr>
    </table>
    <div style="height:10px; clear:both;"></div>
    <div class="fixed_bg" style="text-align:center; padding:15px 0 15px 0;">
      <input name="Submit" type="submit" class="btn2 btnbaoc" value="立即发送">
      <input name="Back" type="button" id="Back" class="btn2 btnguanb" value="关闭" onClick="art.dialog.close();guanbi();">
    </div>
  </form>
  
</div>
<script src="theme/default/WdatePicker.js"></script> 
<script src="theme/layui/layui.js"></script> 
<script src="theme/desktop/js/common.js"></script> <script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  //创建一个编辑器
  var editIndex = layedit.build('txaContent');
});
</script>

<script>
/*弹出窗口封装代码*/
$(".open-app").on("click",function(){
	var width = $(this).data("width")?$(this).data("width"):900,//获得宽度
	height = $(this).data("height")?$(this).data("height"):400//获得高度
	url = $(this).attr("href")//获得打开URL
	title = $(this).attr("title");//获得标题	
	$.dialog.open(url, {title: title, width:width,height:height, fixed: true});
	return false;	
})
</script>

</body>
</html>
